package com.mall.user.domain.model;

public record StoreSeoDescription(String description) {
    public StoreSeoDescription {
        //店铺seo描述长度必须在0到120个字符之间
        if (description.length() > 120) {
            throw new IllegalArgumentException("店铺seo描述长度必须在0到120个字符之间");
        }
    }

    public static StoreSeoDescription of(String description) {
        return new StoreSeoDescription(description);
    }
}
